package data

import (
	"gitee.com/yunduansing/limitsecondkill/model"
	"github.com/jmoiron/sqlx"
)

func Create(tx *sqlx.Tx,m model.CreateModel) (err error) {
	sql:="insert into bt_order(product_id,`name`,created_time) values(?,?,now())"
	_,err=tx.Exec(sql,m.ProductId,m.Name)
	return
}
